package com.changxianggu.cloud.crawler.core.modules.university.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 电子教材登记表
 * </p>
 *
 * @author liuyuantao
 * @since 2020-03-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("cxg_ebook_demand")
public class UniversityEbookDemand extends Model<UniversityEbookDemand> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("school_id")
    private Integer schoolId;

    @TableField("school_name")
    private String schoolName;

    @TableField("faculty_name")
    private String facultyName;

    @TableField("teacher_id")
    private Integer teacherId;

    @TableField("teacher_name")
    private String teacherName;

    @TableField("course_name")
    private String courseName;

    @TableField("email")
    private String email;

    @TableField("press_id")
    private Integer pressId;

    @TableField("book_name")
    private String bookName;

    @TableField("ISBN")
    private String isbn;

    @TableField("author")
    private String author;

    @TableField("remark")
    private String remark;

    /**
     * 0
     */
    @TableField("status")
    private Integer status;

    /**
     * 1:电子书 2：课件 3：网络课程 4：其他
     */
    @TableField("type")
    private Integer type;

    @TableField("addtime")
    private Long addtime;

    @TableField("suggest")
    private String suggest;

    @TableField("mobile")
    private String mobile;

    @TableField("role_type")
    private Integer roleType;

    /**
     * 处理状态(1：未导出处理，2：已导出回复老师，3：已联系老师回复处理）
     */
    @TableField("handler_status")
    private Integer handlerStatus;

    /**
     * 回复处理意见
     */
    @TableField("handler_message")
    private String handlerMessage;

    @TableField("course")
    private String course;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
